﻿using System;

namespace TfsComLib.TfsBranchLib2
{
    /// <summary>
    ///     Элемент истории в версионном хранилище
    ///     Например, Changeset
    /// </summary>
    public class HistoryItem
    {
        public int ID { get; set; }
        public DateTime RegistryDate { get; set; }
        public string Committer { get; set; }
        public string Comment { get; set; }
        public HistoryItemType ItemType { get; set; }
        public BranchData Branch { get; set; }

        public string RegistryDateFormatted
        {
            get { return RegistryDate.ToString("dd.MM.yyyy HH:mm:ss"); }
            set { }
        }

        public string Changes { get; set; }
    }

    public enum HistoryItemType
    {
        Changeset,
        Label
    };
}